CC = gcc
CXX = g++

INDIR = -I ..\include
CFLAGES = -g 

SRC = $(shell dir *.cpp)
OBJ = $(SRC:.cpp=.o)

Target = UTSS

all : clean $(Target)

$(Target) : $(OBJ)
	$(CXX) $(CFLAGES) $(INDIR)  -o $(Target) $^
	@[ -d ..\bin ] || md ..\bin
	@copy /Y  $(Target) ..\bin

%.o : %.cpp
	$(CXX) $(CFLAGES) $(INDIR) -c $< -o $@

clean:
	@ del /q /s *.o
	@ del /q $(Target)
